/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.bs.pesquisaView;

import javax.swing.JPanel;
import org.hibernate.criterion.Criterion;

/**
 *
 * @author Bone
 */
public abstract class PesquisaAbstrata extends JPanel {
    private String campo = "campo";
    private String legenda = "Legenda:";
    public abstract Criterion getCriterion();

    public String getCampo() {
        return campo;
    }

    public void setCampo(String campo) {
        String old = this.campo;
        this.campo = campo;
        firePropertyChange("campo", old, campo);
    }

    public String getLegenda() {
        return legenda;
    }

    public void setLegenda(String legenda) {
        String old = this.legenda;
        this.legenda = legenda;
        firePropertyChange("legenda", old, legenda);
    }
    
}
